﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/AdminMaster.Master" AutoEventWireup="true" CodeBehind="AddNews.aspx.cs" Inherits="Realisticsoft.Tesdo.Admin.AddNews" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit.HTMLEditor" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphAdmin" runat="server">
    <div class="content-box-outer">
        <div class="content-box-right">
        </div>
        <div class="content-box-left">
            <h1>Nanage News<%--<a href="#" class="addNew">Add new category</a>--%></h1>
            <div>
                <table style="width: 100%;">

                    <tr>
                        <td class="style5"></td>
                        <td class="style3"></td>
                        <td class="style3"></td>
                    </tr>
                    <tr>
                        <td align="right" class="style13" style="color: #000000; font-size: medium">News Title:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        </td>
                        <td class="style14">
                            <asp:TextBox ID="txtNewsTitle" runat="server" Width="300px">
                            </asp:TextBox>
                        </td>
                        <td class="style14"></td>
                    </tr>
                    <tr>
                        <td align="right" class="style11" style="font-size: medium">Description:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        </td>
                        <td class="style12">
                            <cc1:Editor ID="Editor1" runat="server" Height="500px" />
                        </td>
                        <td class="style12"></td>
                    </tr>
                    <tr>
                        <td align="right" class="style9"></td>
                        <td class="style10">
                            <asp:Label ID="lblMsg" runat="server"></asp:Label>
                        </td>
                        <td class="style10"></td>
                    </tr>
                    <tr>
                        <td align="right" class="style7"></td>
                        <td class="style8">
                            <asp:Button ID="btnSave" runat="server" Height="28px" OnClick="btnSave_Click" Text="Save"
                                Width="66px" />
                        </td>
                        <td class="style8"></td>
                    </tr>
                    <tr>
                        <td class="style6">&nbsp;
                        </td>
                        <td class="style2">&nbsp;&nbsp;
                        </td>
                        <td class="style2">&nbsp;
                        </td>
                    </tr>
                </table>
            </div>
             <asp:GridView ID="gvNews" runat="server" AutoGenerateColumns="False" CellPadding="4"
                ForeColor="Black" GridLines="Vertical" OnRowCommand="gvNews_RowCommand"
                AllowPaging="True" OnPageIndexChanging="gvNews_PageIndexChanging"
                Width="988px" BackColor="White" BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px">
                <RowStyle BackColor="#F7F7DE" />
                <AlternatingRowStyle BackColor="White" />
                <Columns>
                      <asp:BoundField DataField="Addedon" HeaderText="Date" />
                    <asp:BoundField DataField="NewsTitle" HeaderText=" Title" />
                    <asp:TemplateField HeaderText="Actions">
                        <ItemTemplate>
                            <asp:ImageButton ID="ImageButtonEdit" Width="15" ToolTip="Edit" CommandArgument='<%#Eval("NewsID") %>'
                                CommandName="cmdUpdate" CausesValidation="False" runat="server" ImageUrl="images/edit.png" />
                            <asp:ImageButton ID="ImageButtonDelete" Width="15" ToolTip="Delete" CommandArgument='<%#Eval("NewsID") %>'
                                CommandName="cmdDelete" OnClientClick="return confirm('Are you sure?');" CausesValidation="False"
                                runat="server" ImageUrl="images/delete.png" />
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:TemplateField>
                </Columns>
                <FooterStyle BackColor="#CCCC99" />
                <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
                <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />

                <SortedAscendingCellStyle BackColor="#FBFBF2" />
                <SortedAscendingHeaderStyle BackColor="#848384" />
                <SortedDescendingCellStyle BackColor="#EAEAD3" />
                <SortedDescendingHeaderStyle BackColor="#575357" />

            </asp:GridView>
           
        </div>
        <div class="MessageArea">
            <asp:Label Text="" ID="Label1" runat="server" />
        </div>
    </div>
</asp:Content>
